package com.wtwd.wtwddevice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.wtwd.device.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2024-05-27
 */
@ApiModel(value="DeviceHeartRateTotal对象", description="")
public class DeviceHeartRateTotal extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备平常心率主键id")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "最大心率")
    private Integer max;

    @ApiModelProperty(value = "最小心率")
    private Integer min;

    @ApiModelProperty(value = "设备时间")
    private String time;

    @ApiModelProperty(value = "数据来源 0设备,1:app")
    private Integer type;
    @TableField("`rows`")
    @ApiModelProperty(value = "当天总条数")
    private Integer rows;

    @ApiModelProperty(value = "当天心率总值")
    private Integer total;

    @ApiModelProperty(value = "设备最后一次详细信息表主键id")
    private Long lastInfoId;


    public Long getLastInfoId() {
        return lastInfoId;
    }

    public void setLastInfoId(Long lastInfoId) {
        this.lastInfoId = lastInfoId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getMax() {
        return max;
    }

    public void setMax(Integer max) {
        this.max = max;
    }

    public Integer getMin() {
        return min;
    }

    public void setMin(Integer min) {
        this.min = min;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "DeviceHeartRateTotal{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", max=" + max +
                ", min=" + min +
                ", time=" + time +
                ", type=" + type +
                ", rows=" + rows +
                ", total=" + total +
                ", lastInfoId=" + lastInfoId +
                '}';
    }
}
